<?php

declare(strict_types=1);

namespace app\request;

use Dsxwk\Framework\WebmanHelper\Validate\Think\BaseRequest;

class UserRequest extends BaseRequest
{
    /**
     * 自定义验证场景规则
     *
     * @return array
     */
    protected function sceneRules(): array
    {
        return [
            'create' => [
                'username'  => 'require|max:25',
                'password' => 'require|max:16',
            ],
        ];
    }

    /**
     * 验证字段描述
     *
     * @var array
     */
    protected $field   = [
        'username'  => '用户名',
        'password'   => '密码',
    ];

    /**
     * 验证提示信息
     *
     * @var array
     */
    protected $message = [];
}